package com.singulee.carschool.service;


import com.singulee.carschool.pojo.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface DetailService {
    /**
     * 查询当前教练发布的课程
     *
     * @param map
     * @param request
     * @return
     */
    public Map<String, Object> getDeatail(Map<String, Object> map, HttpServletRequest request);

    /**
     * 课程的添加
     *
     * @param map
     * @param request
     * @return
     */
    public Map<String, Object> addDetail(Map map, HttpServletRequest request);


    /**
     * 批量修改
     *
     * @param map
     * @return
     */
    public Map<String, Object> removeDetail(Map map);

    /**
     * 课程发布(保存)
     *
     * @param map
     * @return
     */
    public Map<String, Object> saveDetail(Map map);


    /**
     * 学员获得教练发布的课程列表
     * courseDate courseClass teacherName carNumber stuid
     *
     * @param map
     * @return
     */
    public Map<String, Object> getSaveDetail(Map map, HttpServletRequest request);

    /**
     * 课程预定
     *
     * @param
     * @param request
     * @return
     */
    public Map<String, Object> orderCourse(Detail detail, HttpServletRequest request);
}
